//引入mockjs
import Mock from 'mockjs';
let { newData } = Mock.mock({
    "newData|10": [
        {
            id: "@increment",
            content: "@csentence(10)",
            publish_date: "@date(yyyy-MM-dd)",
            'status|1': ['启用', '禁用'],
            operator: "@cname()",
            operate_time: "@date(yyyy-MM-dd hh:mm:ss)",
           
        },
    ],
});

Mock.mock("/api/user", "post", (data) => {

    return {
        status: 200,
        message: "post请求成功",
        data: newData,
    };
});